<?php
use \blog\libs\BHtml;
use \blog\libs\BMeta;
use \blog\libs\option;
if (!class_exists('Sy')) {
	exit;
}
?>
<!DOCTYPE html>
<html>
<head>
	<?=BHtml::meta(['name|viewport' => 'width=device-width, initial-scale=1'])?>
	<title><?=BHtml::encode($title)?> - <?=option::get('sitename')?></title>
	<?php Sy::view('common/header'); ?>
	<?=BHtml::link()?>
</head>
<body>
	<?php Sy::view('common/navbar', ['tid' => $tid]) ?>
	<div class="row">
		<div class="col s9">
		<?php
		while ($a = $list->next()) {
			echo '<article class="card-panel"><h4><a href="';
			echo $a->url();
			echo '">';
			$a->title();
			echo '</a></h4><p class="info">';
			$a->date('Y年m月d日 H:i:s');
			echo '</p><p>';
			$a->excerpt(100,'...');
			echo '</p></article>';
		}
		?>
		<ul class="pagination center-align">
		<?php
		$list->pageNav('li', 'waves-effect', 'active', '<i class="mdi-arrow-back"></i>', '<i class="mdi-arrow-forward"></i>');
		?>
		</ul>
		</div>
		<?php Sy::view('common/sidebar'); ?>
	</div>
	<?php Sy::view('common/footer') ?>
</body>
</html>